package rm.member.business.domain.convert;


import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;
import rm.member.business.domain.DO.GoodsPromotionDetailDO;
import rm.member.business.domain.DO.GoodsPromotionPageDO;
import rm.member.business.domain.DTO.GoodsPromotionDetailDTO;
import rm.member.business.domain.DTO.GoodsPromotionPageDTO;

/**
 *  * N1--
 * OrderInfoDTO-->ChangeDepositLgDetailDO
 */
@Mapper
public interface GoodsPromotionPageDOToDTO {
    GoodsPromotionPageDOToDTO INSTANCE = Mappers.getMapper(GoodsPromotionPageDOToDTO.class);
    @Mappings({
            @Mapping(source = "goodsPromotionDetailDO", target = "goodsPromotionDetailDTO"),
            @Mapping(source = "goodsPromotionItemDOList", target = "goodsPromotionItemDTOList")
    })
    GoodsPromotionPageDTO domain2dto(GoodsPromotionPageDO goodsPromotionPageDO);
}
